<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .content{
            width: 1190px;
            margin: 0 auto;
            background-color: orange;
            height: 600px;
        }
        .item{
            /* 1190   5个盒子   间隙是10px */
            width: 230px;
            height: 300px;
            background-color: skyblue;

            /* 浮动元素，如果一行装不下，会自动换行 */
            float: left;
            margin-right: 10px;
        }
    </style>
</head>
<body>
    <div class="content">
        <div class="box">
            <div class="item item1"><h1>1</h1></div>
            <div class="item item2"><h1>2</h1></div>
            <div class="item item3"><h1>3</h1></div>
            <div class="item item4"><h1>4</h1></div>
            <div class="item item5" style="margin-right: 0px;"><h1>5</h1></div>
        </div>
    </div>
</body>
</html>